<?php

	/**
	 * Juan's debug function:
	 * Displays variables (including arrays) for debugging purposes.
	 * Example use: juan_debug($array1, $variable1, $variable2, $array2);
	 * May contain any number of variables.
	 */
	function juan_debug(){
		if(func_num_args() > 0){
			echo '<pre>';
			$args = func_get_args();
			foreach($args as $arg){
				if(is_array($arg) || is_object($arg)){
					print_r($arg);
				}else{
					echo $arg.'<br>';
				}
			}
			echo '</pre>';
		}
		die('UNDER CONSTRUCTION: Juan is testing!!!');
	}
	
?>